package cn.elwy.rcp.ui.explorer.core.util;

import org.tmatesoft.svn.core.SVNURL;
import org.tmatesoft.svn.core.io.SVNRepository;
import org.tmatesoft.svn.core.wc.SVNClientManager;

public class SVNClient {

  private String username;
  private String password;
  private SVNURL svnURL;
  private SVNRepository repository;
  private SVNClientManager clientManager;

  public SVNClient(String username, String password, SVNURL svnURL, SVNRepository repository,
      SVNClientManager clientManager) {
    super();
    this.username = username;
    this.password = password;
    this.svnURL = svnURL;
    this.repository = repository;
    this.clientManager = clientManager;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public SVNURL getSvnURL() {
    return svnURL;
  }

  public void setSvnURL(SVNURL svnURL) {
    this.svnURL = svnURL;
  }

  public SVNRepository getRepository() {
    return repository;
  }

  public void setRepository(SVNRepository repository) {
    this.repository = repository;
  }

  public SVNClientManager getClientManager() {
    return clientManager;
  }

  public void setClientManager(SVNClientManager clientManager) {
    this.clientManager = clientManager;
  }

  public void dispose() {
    clientManager.dispose();
  }

}
